import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';

class EasyFreshStyle {
  static ClassicsHeader getRefresgHeader(
      BuildContext context, GlobalKey<RefreshHeaderState> headerKey) {
    return ClassicsHeader(
      key: headerKey,
      refreshText: '下拉刷新',
      refreshReadyText: '释放刷新',
      refreshingText: "正在刷新...",
      refreshedText: '刷新结束',
      bgColor: Colors.transparent,
      textColor: Colors.black87,
    );
  }

  static ClassicsFooter getRefreshFooter(
      BuildContext context, GlobalKey<RefreshFooterState> footKey) {
    return ClassicsFooter(
      key: footKey,
      loadText: '上拉加载',
      loadReadyText: '释放加载',
      loadingText: '正在加载',
      loadedText: '加载结束',
      noMoreText: '没有更多数据',
      bgColor: Colors.transparent,
      textColor: Colors.black87,
    );
  }
}
